<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
<head>
<title></title>   
<s:include value="../common/source.jsp"></s:include>
<title>学科管理系统</title>			
</head>  
<body>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
	%>
<base href="<%=basePath%>">
  <script type="text/javascript">
		
	var message = '<s:property value="flag" />';
	  if(message!=null&&message!="")
	   {
	   		if(message=="success")
			 alert("修改成功!");
	   		else
   			{
   			alert("修改失败!");
   			}
	   		window.location.href = "<%=basePath%>/leader/ToTeacherMangerAction.action?teach.teaId="+<s:property value="teacher.teaId" />;
	   }		
		</script>
		
<div class="body">
<div class="content ui-sortable">
          <div class="list">
         	教师信息
          	 </div>
          	 </div>
          	 <br/> 
          	  <br/> 
          	   <hr style="background-color:#cfe1f9;height:1px;"/>
	<form class="sui-form form-horizontal sui-validate" 
			action="leader/DirectMidteaexpAction?teacher.teaId=<s:property value="teacher.teaId"/>" 
			method="post">
		<table class="sui-table table-vzebra "  
				>
		<tbody>
		<tr>
			<td style="width:13%">教师姓名</td>
			<td style="width:37%"> <s:property value="teacher.name"/></td>                       
			<td style="width:13%" 
				rowspan="14">专家类别和<br/>授予日期</td>
			<td rowspan="14" >
	<div class="control-group" style="line-height:21px;">
    
		<s:iterator value="experter">     
			<% int m = 0; %>
			<s:iterator value="midtable">
				<s:if test="expId==meid">
				<% m = 1; %>         
				<input type="checkbox" disabled="disabled" class="checkbox-pretty" style="font-size:14px;" checked  name="experid" value="<s:property value="expId"/>"/>
						<span>
							<s:property value="expert"/>
						</span>		
				<input type="text" disabled="disabled" style="width:90px;height:12px;" data-toggle="datepicker" name="medatetime" value="<s:date name="medate" format="yyyy-MM-dd"/>">
				<br/>
				</s:if>     
			</s:iterator> 
			<% request.setAttribute("m", m); %> 
			<s:if test="#request.m==0">
				<input type="checkbox" disabled="disabled" name="experid" style="line-height:18px;font-size:20px;" value="<s:property value="expId"/>"/>
						<span style="font-size:14px;">
							<s:property value="expert"/>
						</span>
			<input type="text" disabled="disabled" style="width:90px;height:12px;" data-toggle="datepicker" name="medatetime" value="<s:date name="medate" format="yyyy-MM-dd"/>">
		   <br/>
			</s:if>
		</s:iterator> 	
	</div>	
			</td>
		</tr>
		<tr>
			<td>教师工号</td>
			<td>  
				<s:property value="teacher.user"/>
			</td>
		</tr>
		<tr>
			<td>所属学科</td>
			<td><s:property value="subject.name"/>
			</td>
		</tr>
		<tr>
			<td>研究方向</td>
			<td> <s:property value="leader.name"/>
			</td>
		</tr>
		<tr>
			<td>进入学科时间</td>
			<td>  <s:date name="teacher.inSubDate" format="yyyy-MM-dd"/> </td>
		</tr>                      
		<tr>
			<td>出生年月</td>
			<td>  <s:property value="birth"/></td>
		</tr>
		<tr>
			<td>邮箱</td>
			<td> <s:property value="teacher.mail"/></td>
		</tr>
		<tr>
			<td>技术职务</td>
			<td> <s:property value="teacher.duty"/></td>
		</tr>              
		
		<tr>
			<td>学位</td>
			<td> 
				<span>
					<s:if test="teacher.degree==0">博士</s:if>
					<s:elseif test="teacher.degree==1">硕士</s:elseif>
					<s:elseif test="teacher.degree==2">学士</s:elseif>
					<s:elseif test="teacher.degree==3">其他</s:elseif>
				</span>
			</td>
		</tr>  
		<tr>
			<td>在职状态</td>
			<td> 
				<span>
					<s:if test="teacher.online==0">在职</s:if>
					<s:elseif test="teacher.online==1">离职</s:elseif>
					<s:elseif test="teacher.online==2">退休</s:elseif>
				</span>
			</td>
		</tr> 
		 

		<tr>
			<td>进修情况简要说明</td>
			<td>  
				<textarea rows="3" class="tex0" name="teacher.furStud" data-rules="required"><s:property value="teacher.furStud"/></textarea>
			</td>
		</tr>
		<tr>
			<td>最高学历毕业学校</td>
			<td><s:property value="teacher.topSchool"/>
			</td>
		</tr>
		<tr>
			<td>最高学历毕业专业</td>
			<td> <s:property value="teacher.topMajor"/>
			</td>
		</tr>
		</tbody>
		</table> 
		</form>
</div>

</body>
</html>
